/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/*  description :常用变量
 *  author :hetanhong
 *  create :2014-6-17
 *  update : 2014-8-28

 */
var Android = {};
var TempFunction = {};

/**local环境*/
 //一期
 var serverURL = "http://192.168.31.17:8080/";
 //工作简报
 var gzbgURL = "http://192.168.244.1/";
 //二期服务端
 var parse2ServerURL="http://192.168.244.1:8113/oacloud";
 //市委
 var swServerURL="http://192.168.244.1:8116/sw";


var isMobile = {
    Android: function () {
        return navigator.userAgent.match(/Android/i) ? true : false;
    },
    BlackBerry: function () {
        return navigator.userAgent.match(/BlackBerry/i) ? true : false;
    },
    iOS: function () {
        return navigator.userAgent.match(/iPhone|iPad|iPod/i) ? true : false;
    },
    Windows: function () {
        return navigator.userAgent.match(/IEMobile/i) ? true : false;
    },
    any: function () {
        return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows());
    }
};
var android = isMobile.Android();
var touch = android ? "touchstart" : "click";
var touch_s = isMobile.Android() ? "touchstart" : "mousedown";
var touch_m = isMobile.Android() ? "touchmove" : "mousemove";
var touch_e = isMobile.Android() ? "touchend" : "mouseup";
var height = window.innerHeight;
var width = window.innerWidth;
var Flag = false;
var clickFlag = false;
var padHeight = 0;
var canRefresh = false;
var Transiacion = 0;
var Transiacion1 = 1;
var currentTime = new Date().getTime();
var disTime = 1000 * 60 * 60;// 设置跳转登录页时间
var fileError = [, "文件不存在", "文件路径无效", "网络链接错误，", "，发生意外错误，下载终止", "NOT_MODIFIED_ERR"];//下载文件出错信息
var picURL = "../../common/page/images/user_ico.jpg";//默认头像
if (!isMobile.Android()) { //弹出层遮罩，方便浏览器调试
    window.plugins = {};
    window.plugins.getIntent = {};
    var show = function (a, b, c) {
    };
    var hide = function (a, b, c) {
    };
    var exit = function (a, b, c) {
    };
    window.plugins.getIntent.show = show;
    window.plugins.getIntent.hide = hide;
    window.plugins.getIntent.exit = exit;
    navigator.splashscreen = {};
    navigator.splashscreen.hide = function () {
    };
}